<?php

!defined('IN_VIFRAME') && die('Access Denied.');

abstract class TException extends Exception {
	public
		$Key    = null,
		$Detail = array();
	
	public function __construct($key, $detail = array()) {
		$this->Key    = $key;
		$this->Detail = (array) $detail;
	}
	
	public function getKey() {
		return $this->Key;
	}
	
	public function getDetail() {
		return $this->Detail;
	}
}
